package com.zhang.authoritycenter.dao.authority;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhang.authoritycenter.common.model.dao.authority.AuthorityRoleDO;
import com.zhang.authoritycenter.common.model.dto.authority.RoleQueryPageReqDTO;
import com.zhang.authoritycenter.common.model.vo.authority.GetRoleVO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author KingHood
 * @since 2023-12-18
 */
public interface AuthorityRoleMapper extends BaseMapper<AuthorityRoleDO> {

    /**
     * 组织信息列表
     *
     * @param page 分页信息
     * @param in   组织信息
     * @return 组织
     * @author zfj
     * @date 2023/12/18
     */
    Page<AuthorityRoleDO> queryPage(Page<Object> page, @Param("data") RoleQueryPageReqDTO in);

    /**
     * 获取角色信息
     *
     * @param id 角色id
     * @return 角色信息
     * @author zfj
     * @date 2023/12/19
     */
    GetRoleVO getRole(@Param("id") Long id);
}
